package com.hxy.apartment.dao;

import com.hxy.apartment.entities.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDao {
    @Select("select id, username,nickname from user where username=#{username} and password=#{password}")
    List<User> getUserByUsernameAndPassword(User user);
}
